import request from '@/utils/request'

// 查询试卷信息设置列表
export function listPaperConfig(query) {
  return request({
    url: '/examination/paperConfig/list',
    method: 'get',
    params: query
  })
}

// 查询试卷信息设置详细
export function getPaperConfig(paperConfigId) {
  return request({
    url: '/examination/paperConfig/' + paperConfigId,
    method: 'get'
  })
}

// 新增试卷信息设置
export function addPaperConfig(data) {
  return request({
    url: '/examination/paperConfig',
    method: 'post',
    data: data
  })
}

// 修改试卷信息设置
export function updatePaperConfig(data) {
  return request({
    url: '/examination/paperConfig',
    method: 'put',
    data: data
  })
}

// 删除试卷信息设置
export function delPaperConfig(paperConfigId) {
  return request({
    url: '/examination/paperConfig/' + paperConfigId,
    method: 'delete'
  })
}

// 列表  
export function getPaperCofigList(query) {
  return request({
    url: '/examination/paperConfig/getList',
    method: 'get',
    params: query
  })
}

//新增
export function addPaperConfigInfo(data) {
  return request({
    url: '/examination/paperConfig/addPaperConfig',
    method: 'post',
    data: data
  })
}

//编辑
export function editPaperConfig(data) {
  return request({
    url: '/examination/paperConfig/editPaperConfig',
    method: 'put',
    data: data
  })
}


//编辑回显
export function getPaperConfigInfo(paperConfigId) {
  return request({
    url: '/examination/paperConfig/getPaperConfigInfo/' + paperConfigId,
    method: 'get',
  })
}

